
#encoding=UTF-8

from Error import *
from Building import *

class TownHall(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Town_Hall"
		self.number_available_dsec = """
1	1	1	1	1	1	1	1	1	1
"""
		self.level_info_desc = """
1	1,500	N/A	N/A	N/A
2	1,600	1,000	5 minutes	17
3	1,850	4,000	3 hours	103
4	2,100	25,000	1 day	293
5	2,400	150,000	2 days	415
6	2,800	750,000	4 days	587
7	3,200	1,200,000	6 days	720
8	3,700	2,000,000	8 days	831
9	4,200	3,000,000	10 days	929
10	5,000	4,000,000	14 days	1,099
"""
		self._DoParse()

	def GetMaxLevel(self, townhall_level):
		return townhall_level

	def _HitPointsIndex(self):
		return 1

	def _BuildCostType(self):
		return 0 #Gold

	def _BuildCostIndex(self):
		return 2

	def _BuildTimeIndex(self):
		return 3

	def _ExperienceGainedIndex(self):
		return 4

